package com.feishi.core.analytic.parser;

import com.feishi.core.util.common.ByteUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by caixq on 5/4 004.
 */
public class PoIntParser implements PoParser<Integer> {
    @Override
    public byte[] getBytes(Integer value) {
        return ByteUtil.intToByte4(value);
    }

    @Override
    public Integer getValue(byte[] bytes) {
        return doFilter(ByteUtil.toInt(bytes));
    }



    private List<Filter<Integer>> filters=new ArrayList();
    @Override
    public List<Filter<Integer>> getFilters() {
        return this.filters;
    }
}
